package com.pokerpro.main;

import static com.pokerpro.Constant.Positions.*;
import static com.pokerpro.Constant.Colors.*;
import java.awt.Robot;
import java.util.List;
import com.pokerpro.interfaces.TableEvents;
import com.pokerpro.model.Card;
import com.pokerpro.model.HoleCards;
import com.pokerpro.model.Table;
import com.pokerpro.support.BaseElement;

public class PokerPro extends BaseElement implements TableEvents  {
	
	private List<HoleCards> handQueue;
	private List<Table> openTables ;
	private int maxTables;
	private int timeToPlay;
	
	public PokerPro (Robot robot, int pMaxTables, int pTimeToPlay) {
		super(robot);
		maxTables = pMaxTables;
		timeToPlay = pTimeToPlay;
	}
	
	public void start () throws Exception {
		openTable();
	}
	
	public void openTable() {
		mouseMoveAndClick(2, LOBBY_FIRST_TABLE_IN_LIST);
		Thread tableTread1 = new Thread(new Table(getRobot(), this, 1));
		tableTread1.run();
		
	}
	


	@Override
	public void actionRequired() {
		
	}

	@Override
	public void handFinished() {
		
	}

	@Override
	public void tableClosed() {
		openTable();
	}

	@Override
	public void seatingSuccessfull() {
		
	}


	@Override
	public void newRiver(Card card) {
		
	}

	@Override
	public void newHoleCards(HoleCards holeCards) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void newFlop(List<Card> card) {
		
	}

	@Override
	public void newTurn(Card card) {
	
	}
}
